package com.lineage.data.item_etcitem;

import com.lineage.data.executor.ItemExecutor;
import com.lineage.server.model.Instance.L1ItemInstance;
import com.lineage.server.model.Instance.L1PcInstance;
import com.lineage.server.serverpackets.S_NPCTalkReturn;
import com.lineage.server.serverpackets.ServerBasePacket;

public class ItemAction extends ItemExecutor {
  private String _htmlid;
  
  public static ItemExecutor get() {
    return new ItemAction();
  }
  
  public void execute(int[] data, L1PcInstance pc, L1ItemInstance item) {
    pc.sendPackets((ServerBasePacket)new S_NPCTalkReturn(pc.getId(), this._htmlid));
    pc.setPolyScrol2(item);
  }
  
  public void set_set(String[] set) {
    try {
      this._htmlid = set[1];
    } catch (Exception exception) {}
  }
}
